$.ajax({
    url:'../server/list.php',
    dataType:'json',
    success(res){
      let {data} = res;
            var arr = data.map(v=>`
                       </li>
                        <li class="item fs14">
                        <img src="${v.imgpath.split('==========')[0]}" alt="">
                        <p class="item-name">${v.name}</p>
                        <p class="item-price">${v.price}</p>
                        <p class="item-praise" style=" width: 100%;
                        white-space:nowrap;
                        text-overflow: ellipsis;
                        overflow: hidden;">${v.introduce}</p>
                        <div class="item-btn">
                            加入购物车
                        </div>
                    </li>
            `).join(' ');
               $('.r-items').html(arr);
          } 
        })
